package com.tudouji.project.repository.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 动态库存对象 rpt_storeanalysis
 * 
 * @author tudouji
 * @date 2021-05-13
 */
@Data
public class RptStoreanalysis extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String guid;

    /** 报表日期 */
//    @Excel(name = "日期" ,dateFormat = "yyyy-MM-dd")
    private Date rptdate;

    /** 库房 */
    private String srguid;
    @Excel(name = "开始日期" ,dateFormat = "yyyy-MM-dd")
    private Date starttime;
    @Excel(name = "结束日期" ,dateFormat = "yyyy-MM-dd")
    private Date endtime;
    /** 库房 */
    @Excel(name = "库房")
    private String srname;

    /** 库间 */
    private String shguid;

    /** 库间 */
    @Excel(name = "库间")
    private String shname;

    /** 公司 */
    private String companyid;

    /** 公司 */
    @Excel(name = "公司")
    private String companyname;

    /** 产品 */
    private String productid;

    /** 产品 */
    @Excel(name = "产品")
    private String productname;

    /** 规格 */
    private String specid;

    /** 规格 */
    @Excel(name = "规格")
    private String specname;

    /** 采收入库重量 */
//    @Excel(name = "采收入库重量")
    private BigDecimal buyinweight;

    /** 生产入库重量 */
//    @Excel(name = "生产入库重量")
    private BigDecimal prodinweight;

    /** 退料入库重量 */
//    @Excel(name = "退料入库重量")
    private BigDecimal retinweight;

    /** 调拨入库重量 */
//    @Excel(name = "调拨入库重量")
    private BigDecimal transinweight;

    /** 调整入库重量 */
//    @Excel(name = "调整入库重量")
    private BigDecimal adjinweight;

    /** 生产领料出库重量 */
//    @Excel(name = "生产领料出库重量")
    private BigDecimal pickoutweight;

    /** 生产报废重量(生产过程中的报废) */
//    @Excel(name = "生产报废重量(生产过程中的报废)")
    private BigDecimal pscrapweight;

    /** 销售出库重量 */
//    @Excel(name = "销售出库重量")
    private BigDecimal selloutweight;

    /** 调拨出库重量 */
//    @Excel(name = "调拨出库重量")
    private BigDecimal transoutweight;

    /** 调整出库重量 */
//    @Excel(name = "调整出库重量")
    private BigDecimal adjoutweight;

    /** 报废出库重量(腐烂) */
//    @Excel(name = "报废出库重量(腐烂)")
    private BigDecimal scrbadoutweight;

    /** 报废出库重量(库损) */
//    @Excel(name = "报废出库重量(库损)")
    private BigDecimal scrlostoutweight;

    /** 库存单位id */
    private Long stockunitid;

    /***************************表生成统计数据***************************/
    private String orgguidcondition;//统计是否有此条件0:没有1：有

    private String othercondition;//
//    @Excel(name = "采收入库")
//    private BigDecimal buyinweightSUM;
//    @Excel(name = "生产入库")
//    private BigDecimal prodinweightSUM;
//    @Excel(name = "退料入库")
//    private BigDecimal retinweightSUM;
//
//    @Excel(name = "调拨入库")
//    private BigDecimal transinweightSUM;
//
//    @Excel(name = "调整入库")//其他
//    private BigDecimal adjinweightSUM;
//
//    @Excel(name = "领料出库")
//    private BigDecimal pickoutweightSUM;
//
//    private BigDecimal pscrapweightSUM;
//    @Excel(name = "销售出库")
//    private BigDecimal selloutweightSUM;
//    @Excel(name = "调整出库")//其他
//    private BigDecimal transoutweightSUM;
//    @Excel(name = "调拨出库")
//    private BigDecimal adjoutweightSUM;
//    @Excel(name = "腐烂报废")//其他
//    private BigDecimal scrbadoutweightSUM;
//    @Excel(name = "库损报废")//其他
//    private BigDecimal scrlostoutweightSUM;

    @Excel(name = "期初库存")
    private BigDecimal startstore;
    @Excel(name = "入库")
    private BigDecimal inWeightSUM;
    @Excel(name = "出库")
    private BigDecimal outWeightSUM;
    @Excel(name = "期末库存")
    private BigDecimal endstore;
    /** 库存单位 */
    @Excel(name = "库存单位")
    private String stockunit;
    /***************************表生成统计数据***************************/

    private Date createtime;

    private  String storermguid;

    private Date startdate;

    private Date enddate;

    private String[] srids;

    private  String farmerid;
    private String[] companyids;

    private String byday;

    private Integer type;//货品类型（所有、原料、次品、产品）
    private Integer srtype;//库房类型

}
